import { request } from '../utils/request.js';
// 获取用户列表
export const getUserListAPI = (data:any) => {
  return request.get('/User/GetList', {
    params: data,
  });
};

// 添加用户
export const addUserAPI = (data:any) => {
  return request.post('/User/AddUser', data);
};

// 修改用户
// id,roleId // 角色
export const editUserAPI = (data:any) => {
  return request.post('/User/EditUser', data);
};

// 删除用户
export const delUserAPI = (data:any) => {
  return request.delete(`/User/DeleteUser/${data}`);
};

// 删除多个用户
export const delUsersAPI = (data:any) => {
  return request.delete(`/User/DeleteUsers`, { data }); 
}
